home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / c / CLib37x.readme < prev    next >
Text File  |  1998-10-31  |  19KB  |  381 lines

  1. Short:    Example.library in 100% C (SAS/Storm/Maxon/GCC/VBCC/DICE/...)
  2. Author:   (various, see below)
  3. Uploader: Andreas_Kleinert@t-online.de
  4. Type:     dev/c
  5. Requires: rexxtricks.library V38+, rexxdossupport.library V2+
  6.  
  7.   example.library V37.32 (15.5.98)
  8.  
  9.   An Amiga shared library in 100 % C language - coming with sources.
  10.  
  11.   Compiler Checklist:        Compiler           Support
  12.                              -------------------------------
  13.    (see README.<compiler>    SAS/C 6.5x         yes
  14.     for more information)    MaxonC 3.x         yes
  15.                              StormC 2.x         yes
  16.                              DICE 3.x           yes
  17.                              GCC 2.7.2.1        yes
  18.                              vbcc 0.5+          yes
  19.                              AztecC             (not tested)
  20.  
  21.   OS Checklist:              Operating System   Support
  22.                              -------------------------------
  23.                              Amiga OS 37-40     yes
  24.                              AROS 1.x           yes (AROS source tree)
  25.  
  26.  
  27.   Original SAS/C and StormC version (C) 1996-98 by Andreas R. Kleinert,
  28.   MaxonC version changes done 1996 by Helmut Hummel and Stephan Rupprecht.
  29.   GCC version changes done 1997 by Stefan Fuchs and Gunter Nikl.
  30.   AROS source tree done 1997 by Aaron Digulla.
  31.   VBCC version changes done 1997 by Patrizio Biancalani and Patrick Burnand.
  32.   DICE adaptation done 1998 by Patrick Burnand.
  33.   All rights reserved.
  34.   ----------------------------------------------------------------------
  35.   This sample library intends to make Amiga shared library sources
  36.   compileable with any available Amiga C compiler - without any
  37.   changes to the source code.
  38.   And maybe in the future also running under any Amiga compatible
  39.   operating system with any CPU.
  40.  
  41.   The first goal seams to be easily done: nearly any noticeable compiler
  42.   for the Amiga does support generation of libraries by special
  43.   linker commands and pre-generated object files.
  44.  
  45.   But when looking into the details, one will find out, that these
  46.   linker functionality just reduces the influence of the programmer
  47.   on how his sources are handled, that the pre-generated object
  48.   files just originally were done in Assembler, and that each compiler
  49.   does define its own interface definitions and usage rules.
  50.  
  51.   But as a programmer, it is important to have control over the _complete_
  52.   source code and to be able to compile it _anywhere_ with only
  53.   minor changes, even better without any changes.
  54.  
  55.   Since most Amiga system modules - noticeable Libraries, Devices and
  56.   Resources - do have startup-modules and other larger parts completely
  57.   written in Assembler language, the most important task for getting
  58.   inter-compiler and operating system independant sources in my opinion
  59.   is, to completely migrate the interfaces to C language (but different
  60.   to AROS, for example, it is most important, to keep the sources running
  61.   under the current 68k AmigaOS in the _first_ place).
  62.  
  63.   This goal basically has been reached already, still missing of
  64.   course are some of the less Amiga-native compilers and of course
  65.   tests with any kind of "AmigaOS for PowerPC".
  66.  
  67.   But since Assembler is nearly as portability-hostile as BCPL _today_
  68.   we may come quite close to the goal defined above by just moving
  69.   towards C.
  70.  
  71.   Translate your 68k-assembler library startup-codes smartly
  72.   to C by simply using this source-code as an advice how to do it.
  73.  
  74.   For testing: install the (re)compiled example.library to LIBS: and
  75.   start the test program - it should pop up a requester, then.
  76.  
  77.   If you can submit adjustments for the other compilers as mentioned
  78.   above: feel free to send these.
  79.   ---
  80.   Feel free to use this source for own projects.
  81.  
  82.   It is allowed to be spread and distributed anywhere, as far
  83.   as my consent is concerned.
  84.  
  85.   Amiga International, or the current owner of the technologie,
  86.   is allowed to always put this source on their newest
  87.   Developer CD-ROM.
  88.  
  89.   Thanks and credits will always be appreciated - for example,
  90.   you MAY, but NEED NOT:
  91.   give me credits in your program's docs, send me keyfiles for
  92.   your programs using the library, and so on.
  93.   But that's simply voluntarily.
  94.  
  95.    _________________________________________________________
  96.   |      You may reach me the following way.                |
  97.   |    Send bug-reports, money or whatever to:              |
  98.   |---------------------------------------------------------|
  99.   |        * SuperView Development & Registration *         |
  100.   |          * DRAFU Development & Registration *           |
  101.   |       * Image Engineer Registration Site Europe *       |
  102.   |                                                         |
  103.   |                                                         |
  104.   |                  PerSuaSiVe SoftWorX                    |
  105.   |                                                         |
  106.   |                  Andreas R. Kleinert                    |
  107.   |                  Sandstrasse 1                          |
  108.   |                  D-57072 Siegen                         |
  109.   |                  Germany, Europe                        |
  110.   |                                                         |
  111.   | Any snail mail to the old address will still be routed. |
  112.   |                                                         |
  113.   |                  Phone:  +49-271-22869 also FAX + AM    |
  114.   |                          +49-271-22838                  |
  115.   |                                                         |
  116.   |                  Weekdays after 17.00h.                 |
  117.   |                                                         |
  118.   |         When calling via phone you may leave a message, |
  119.   |         if I'm not available - but don't expect me      |
  120.   |         calling back to USA, Australia, ... since       |
  121.   |         german phone rates are HIGHLY expensive.        |
  122.   |_________________________________________________________|
  123.  
  124.     http://home.t-online.de/home/Andreas_Kleinert/
  125.  
  126.   eMail:
  127.  
  128.         Please send binaries via ARK@News.wwbnet.de, and keep
  129.         them smaller than 16 KB. Please think twice before
  130.         sending them - my postbox is not unlimited in size.
  131.  
  132.            - Fido    Andreas Kleinert 2:2457/350.18
  133.            - Usenet
  134.                      Andreas_Kleinert@superview.ftn.neckar-alb.de (Fido-Gate)
  135.                      Andreas_Kleinert@t-online.de                 (T-Online)
  136.                      ARK@News.wwbnet.de                           (Z-Netz)
  137.                      ARK@amigaworld.com                           (AmigaWorld)
  138.  
  139.            - If nothing else works, try one of these public
  140.              Fido-Usenet gateways:
  141.  
  142.                In Germany:
  143.                  Andreas_Kleinert@p18.f350.n2457.z2.fido.sub.org
  144.  
  145.                From USA or elsewhere:
  146.                  Andreas_Kleinert@p18.f350.n2457.z2.fidonet.org
  147.  
  148.  
  149.  Known Bugs:        - some versions of DOpus and all Installer versions
  150.                       can't fetch the version information from the
  151.                       library binary due to some bugs in their code.
  152.                       Newer DOpus versions have this fixed and C:Version
  153.                       for example did that task always.
  154.  
  155.  
  156.  History:
  157.  
  158.  V37.32 (15.05.98): - additional macros for function prototypes
  159.                     - use libdefs.config to set name, version etc. of library
  160.                     - GenLibDefs.rexx: generates libdefs.h
  161.                     - GenFDClibFTab.rexx: generates FD, CLIB and
  162.                       functionTable.h files
  163.                     - reformat sources to 75 character/line
  164.                     - change makefile.gcc
  165.  
  166.  V37.31 (18.03.98): - changed SEGLISTPTR type definition for VBCC
  167.                       (-> Patrick Burnand)
  168.                     - fixed some typos and improved style in several
  169.                       source modules and headers
  170.  
  171.  V37.30 (07.03.98): - added DICE support, done by Patrick Burnand
  172.                       <pburnand@hotmail.com>
  173.                       He modified LibInit.c and StartUp.c to avoid a possible
  174.                       bug in DICE.  The 'extern' keyword might not always be
  175.                       supported well.  (extern struct ExampleBase*